<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BMixListView
 *
 * @author ID59C
 */
class BWListLayout extends CWidget{
    //put your code here
    //format or itemViews = array(array('view'=>$view,'data'=>$data))
    public $items = array();    
    public $htmlOptions=array('class'=>'b_mix_list_view');
    
    public function init() {
       
    }
    
    public function run() {
        $this->renderContent();
    }
    
    public function renderContent()
    {
        foreach ($this->items as $item)
        {
            $view = $item['view'];
            $data = $item['data'];
            echo CHtml::openTag('div',$this->htmlOptions)."\n";
            $this->render($view, $data);
            echo "</div>\n";
        }
    }    
}

?>
